package book.service.impl;


import book.dao.IBookDao;
import book.service.IBookService;
import com.xuan.bkm.entity.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;


@Service
@Transactional
public class BookServiceImpl implements IBookService {

    @Autowired
    private IBookDao dao;
    @Override
    public List<Book> findAll() {
        return dao.findAll();
    }
}
